package com.mk.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author XueJinCha
 */
@Getter
public class MqttMessageEvent extends ApplicationEvent {

    private final String topic;
    private final String payload;

    public MqttMessageEvent(Object source, String topic, String payload) {
        super(source);
        this.topic = topic;
        this.payload = payload;
    }

}
